# 简单测试学校信息控制器
Write-Host "测试学校信息控制器 API..." -ForegroundColor Green

# 测试列表端点
Write-Host "`n测试 /jwgl/schoolinfo/list:" -ForegroundColor Yellow
try {
    $response = Invoke-RestMethod -Uri "http://localhost:8091/jwgl/schoolinfo/list" -Method GET
    Write-Host "✓ 成功连接！返回数据行数: $($response.rows.Count)" -ForegroundColor Green
} catch {
    Write-Host "✗ 错误: $($_.Exception.Message)" -ForegroundColor Red
}

Write-Host "`n测试完成！" -ForegroundColor Green